package org.telegram.bot.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;

/**
 * 群管理员对象 bot_chat_member
 *
 * @author wyx
 * @date 2024-11-20
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("bot_chat_member")
public class BotChatMember extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    
    /** 群ID */
    @Excel(name = "群ID")
    @TableField(value = "chat_id", condition = SqlCondition.LIKE)
    private Long chatId;
    
    /** 账号ID */
    @Excel(name = "账号ID")
    @TableField(value = "user_id", condition = SqlCondition.LIKE)
    private Long userId;

    /** 账号名称 */
    @Excel(name = "账号名称")
    @TableField(value = "user_name", condition = SqlCondition.LIKE)
    private String userName;

    /** 名 */
    @Excel(name = "名")
    @TableField(value = "first_name", condition = SqlCondition.LIKE)
    private String firstName;

    /** 姓 */
    @Excel(name = "姓")
    @TableField(value = "last_name", condition = SqlCondition.LIKE)
    private String lastName;

    /** 群角色 */
    @Excel(name = "群角色")
    private String role;

    /** 是否机器人 */
    @Excel(name = "是否机器人")
    private String bot;

    /** TG会员 */
    @Excel(name = "TG会员")
    private String premium;

    /** 显示顺序 */
    private Integer orderNum;

    /** 状态（0正常 1停用） */
    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 创建者Id */
    @TableField(fill = FieldFill.INSERT)
    private Long createById;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
                .append("chatId", getChatId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("firstName", getFirstName())
            .append("lastName", getLastName())
            .append("role", getRole())
            .append("bot", getBot())
            .append("premium", getPremium())
            .append("remark", getRemark())
            .append("orderNum", getOrderNum())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
